$(function(){
	$("#tabs li").bind("click",function(){
		var index = $(this).index();
		var divs = $("#tabs-body>div");
		$(this).parent().children("li").attr("class","tab-nav");
		$(this).attr("class","tab-nav-action");
		divs.hide();
		divs.eq(index).show();
	});
	$('#update').on('click', function(){  
	     layer.msg('模板确认下发吗？',{
	    	 time:0,
	    	 btn:['确认','取消'],
	    	 yes:function(index){
	    		 layer.close(index);
	    		 beginCheck();
	    	 }
	     })
	});  
	$('#delete').on('click', function(){  
	     layer.msg('模板确认删除吗？',{
	    	 time:0,
	    	 btn:['确认','取消'],
	    	 yes:function(index){
	    		 layer.close(index);
	    		 beginCheck();
	    	 }
	     })
	});  
})